package com.gzsxy.NIO.netty.groupchat;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 客户端handler
 * @date 2022/5/15 14:51
 */
public class GroupChatClientHandler extends SimpleChannelInboundHandler<String> {


    //从服务器拿到的数据
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
        System.out.println(msg.trim());
    }

}
